﻿<!doctype html>
<html>
<head>
<title>模块添加</title>
<#include "../../commonUse.html"/>


<script src="${ctx.contextPath}/pages/system/sysmodule/js/module_add.js"></script>
<script src="${ctx.contextPath}/pages/system/sysmodule/js/module_tree.js"></script>
<script>
	var moduleIds = null;
	var moduleNames = null;
</script>
</head>
<body>
	<div class="list-template" style="width:750px;">
		<div class="m-head m-head-p">
			<div class="left">
				<label class="title">模块新增</label>
			</div>
			<div class="right">
				<div class="flow"></div>
				<!--     <div class="f i-setting f_setting" id="tradeTypeID"></div> -->
			</div>
			<img class="panel-close" src="../images/card-close.png"
				onclick="parent.closeDialogWin();" />
		</div>
		<div class="m-page">
				<form method="post" id="form1" name="form1">
					<div class="l-edit" id='main_div'>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td class="font" width="15%">模块名称：<span class="empt">*</span></td>
								<td width="35%"><input type="text" id="moduleName"
									name="moduleName" class="text"></input></td>
								<td width="15%" class="font">链接地址：</td>
								<td width="35%"><input type="text" id="linkPath"
									name="linkPath" class="text"></input></td>
							</tr>
							<tr>
								<td class="font" width="15%">上级模块：<span class="empt">*</span></td>
								<td width="35%">
									<div>
										<ul class="list">
											<li class="title"><input class="text"
												id="parentModuleName" type="text" readonly value=""
												style="width: 150px;" onclick="showMenu();" /></li>
										</ul>
										<input id="parentId" type="hidden" name="parentId" />
									</div>
									<div id="menuContent" class="menuContent"
										style="display: none; position: absolute;">
										<ul id="treeDemo" class="ztree"
											style="margin-top: 0; width: 180px; height: 300px;"></ul>
									</div>
								</td>
								<td width="15%" class="font">类型：<span class="empt">*</span></td>
								<td width="35%"><select id="isMenu" name="isMenu">
										<option value="">---请选择---</option>
										<option value="0">模块</option>
										<option value="1">链接</option>
										<option value="3">按钮</option>
								</select></td>
							</tr>
							<tr>
								<td class="font">模块级别：<span class="empt">*</span></td>
								<td><select id="moduleType" name="moduleType">
										<option value="">---请选择---</option>
										<option value="1">平台级别</option>
										<option value="2">手机级别</option>
								</select></td>
								<td class="font">排序：<span class="empt">*</span></td>
								<td><input class="text"
									onkeyup="this.value=this.value.replace(/\D/g,'')" id="orderBy"
									name="orderBy" type="text" value="1" style="width: 150px;" /></td>
							</tr>
								<tr>
								<td class="font" width="15%">图标：</td>
								<td width="35%" colspan="3"><input type="text" id="img"
									name="img" class="text" value=""></input></td>
							</tr>
						</table>
						<div class="edit-btn">
							<ul>
								<li id="checkSaveBtn" class="btn" onclick="moduleAdd();">保
									存</li>
							</ul>
						</div>
						<div class="clear"></div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>